package com.example.wj.dao;

import com.example.wj.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserDao extends JpaRepository<User,Integer> {
    User findUserByUsername(String name);
    User getUserByUsernameAndPassword(String name,String password);
      User findByUsername(String username);
      User findUserById(Integer id);
      void deleteByUsername(String username);

     List<User> findAll();
}
